package com.cc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 33314
 * @version 1.0
 * @description: TODO 员工实体类
 * @date 2025/4/17 19:16
 */
@AllArgsConstructor
@NoArgsConstructor
@Data //使用DATA 则不需要写构造方法，getter setter，toString等方法
public class Emp implements Serializable {
    private final static long serialVersionUID = 1458547284669624190L;
    //编号
    private Integer id;
    //员工姓名
    private String empName;
    //部门id
    private Integer deptId;
    //部门名称
    private String deptName;
    //员工职位
    private String position;
    //入职时间
    private String  startDate;
    //员工电话
    private String phone;
    //头像
    private String imgUrl;

    public Emp(int id, String empName, int deptId, String position, String startDate, String phone, String imgUrl) {
        this.id = id;
        this.empName = empName;
        this.deptId = deptId;
        this.position = position;
        this.startDate = startDate;
        this.phone = phone;
        this.imgUrl = imgUrl;
    }
}
